package com.wap.framework.service;

import java.util.List;

import com.wap.framework.dao.AdvertisementDAO;
import com.wap.framework.model.Advertisement;

public class AdServiceImpl implements AdService {

	private AdvertisementDAO adDAO;
	public void setAdDAO(AdvertisementDAO adDAO) {
		this.adDAO = adDAO;
	}
	
	public void deleteAdvertisement(int[] ids) {
		this.adDAO.deleteAdvertisement(ids);
	}

	public Advertisement editAdvertisement(int id) {		
		return this.adDAO.editAdvertisement(id);
	}

	public void insertAdvertisement(Advertisement ad) {
		this.adDAO.insertAdvertisement(ad);
	}

	public List<Object> listAdvertisement(int pageNum) {		
		return this.adDAO.listAdvertisement(pageNum);
	}

	public void updateAdvertisement(Advertisement ad) {		
		this.adDAO.updateAdvertisement(ad);
	}
}
